package SemanticAnalyzer;

import java.util.ArrayList;

/**
 * Table Entry Object
 * @author vcolegro, akanter
 *
 */
public class TableEntry {
	String name;
	String type;
	boolean lvalue=true; 
	ArrayList<String> params; 
	boolean isArray=false;

	//TODO--Need to store the name?? It's already in the hashmap.
	//TODO--Flag to differentiate?? Funct vs. v'ble
	
	/**
	 * Constructor for variable entry
	 */
	public TableEntry(String n, String t){
		name = n;
		type = t;
	}

	/**
	 * Constructor for function entry
	 * @param n name
	 * @param t type
	 * @param p params
	 */
	public TableEntry(String n, String t, ArrayList<String> p){
		name = n;
		type = t;
		params = p;
	}
}
